package com.lct.designpattern.builder;

import com.lct.designpattern.builder.interfaces.IBuildHuman;

public class SmartManBuilder implements IBuildHuman {
    private Human human;

    public SmartManBuilder() {
        human = new Human();
    }

    @Override
    public void buildHead() {
        human.setHead("智商250的头脑");
    }

    @Override
    public void buildBody() {
        human.setBody("新的身体");
    }

    @Override
    public void buildHand() {
        human.setHand("新的手");
    }

    @Override
    public void buildFoot() {
        human.setFoot("新的脚");
    }

    @Override
    public Human createHuman() {
        return human;
    }
}
